//
//  DvdDetalisModel.m
//  SugarPile
//
//  Created by LC on 16/2/29.
//  Copyright © 2016年 www.lanou39.蓝鸥科技. All rights reserved.
//

#import "DvdDetalisModel.h"

@implementation DvdDetalisModel
-(void)dealloc
{
    [_userId release];
    [_avatar release];
    [_category release];
    [_like_count release];
    [_count release];
    [_selfId release];
    [_name release];
    [_created_at release];
    [_covers release];
    [super dealloc];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"user"]) {
        self.username = value[@"username"];
        self.userId = value[@"id"];
        self.avatar = value[@"avatar"];
    }
    if ([key isEqualToString:@"id"]) {
        self.selfId = value;
    }
}
@end
